package com.example.xinhuazidian.base

import com.example.xinhuazidian.bean.LatestBean
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

object API {
    const val BASE_URL_UPDATA = "http://api.bq04.com/" //检查更新

    interface Api {
        //检测版本更新
        @GET("apps/latest/{id}")
        fun latest(
            @Path("id") id: String?,
            @Query("api_token") api_token: String?
        ): Observable<LatestBean?>?
    }
}